/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.image.ImageObserver;
import main.Game;

/**
 *
 * @author hjess
 */
public class Player extends Entity {

    private int point;
    
    public Player(int x, int y, int dx, int dy, int size, int hitpoint, int speed, Image img) {
        super(x, y, dx, dy, size, hitpoint, speed, img);
        point = 0;

    }


    public int getPoint() {
        return point;
    }
    
    public void setPoint(int point) {
        this.point = point;
    }

    public void addPoint(int p ){
        point += p;
    }
 
    public void moveLeft() {
        if (getX() - getSpeedX() > 230) {
            setX(getX() - getSpeedX());
        }
    }

    public void moveRight() {
        if (getX() + getSize() + getSpeedX() < Game.WIDTH - 55) {
            setX(getX() + getSpeedX());
        }
    }

    public void dropstone() {
        // drop da bomb
    }

    @Override
    public void move() {
//       setX(getX()+getSpeedX());
//       setY(getY()+getSpeedY());
    }
}
